dhcpv6c: fix illegal DHCPV6_OPT_FQDN
authorPaul Donald <[email protected]>
Wed, 1 Oct 2025 21:38:13 +0000 (23:38 +0200)
committerÁlvaro Fernández Rojas <[email protected]>
Fri, 17 Oct 2025 17:20:01 +0000 (19:20 +0200)
commitd7afeea2b9650c64fcf915cbb3369577247b96ed
tree4591c33bb62ef68c115cf1080f716d518f1f7086
parent70f7467db3010af421a2ca528c92313dd3fb2dcc
dhcpv6c: fix illegal DHCPV6_OPT_FQDN

Some message types e.g. DHCPV6_MSG_INFO_REQ contained
DHCPV6_CLIENT_FQDN (39) which is illegal. See Client FQDN RFC4704:

https://www.rfc-editor.org/rfc/rfc4704#section-5

   A client MUST only include the Client FQDN option in SOLICIT,
   REQUEST, RENEW, or REBIND messages.

https://www.rfc-editor.org/rfc/rfc4704#section-6

   Servers MUST only include a Client FQDN option in ADVERTISE and REPLY
   messages...

Do not send it unless the message type is appropriate.

Signed-off-by: Paul Donald <[email protected]>
Link: https://github.com/openwrt/odhcp6c/pull/100
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/dhcpv6.c